package com.uwo.house.config;

import com.uwo.house.advice.Code;
import org.apache.shiro.authc.AccountException;

/**
 * Created by yanhao on 2017/7/18.
 */
public class AccessTokenException extends AccountException {

    public AccessTokenException() {
    }

    private int code;

    public AccessTokenException(Code code, String message) {
        super(message);
        this.code = code.getCode();
    }

    public AccessTokenException(Throwable cause) {
        super(cause);
    }

    public AccessTokenException(String message, Throwable cause) {
        super(message, cause);
    }

    public int getCode() {
        return code;
    }
}
